import Mock from "mockjs";

Mock.mock('/api/documents/list', 'post', function (option) {
    // 这里的option是请求的相关参数
    console.log(JSON.stringify(option))
    console.log(option.body);
    let arr1 = option.body.split("=");
    console.log(arr1[1]);
    if (arr1[1] === '%7B%22tags%22%3A%5B1%2C3%2C5%5D%7D') {
        return {
            data: [
                {
                    "sequence": 1,
                    "price": 0,
                    "name": "诉讼法律服务合同（简）",
                    "finalPrice": 0,
                    "id": 300,
                    "version": 1
                },
                {
                    "sequence": 2,
                    "price": 0,
                    "name": "诉讼法律服务合同（详）",
                    "finalPrice": 0,
                    "id": 302,
                    "version": 3
                },
                {
                    "sequence": 3,
                    "price": 0,
                    "name": "诉讼法律服务合同（风险代理）",
                    "finalPrice": 0,
                    "id": 303,
                    "version": 1
                },
                {
                    "sequence": 4,
                    "price": 0,
                    "name": "所函（原告）",
                    "finalPrice": 0,
                    "id": 304,
                    "version": 1
                },
                {
                    "sequence": 14,
                    "price": 0,
                    "name": "授权委托书(原告N）",
                    "finalPrice": 0,
                    "id": 306,
                    "version": 2
                },
                {
                    "sequence": 34,
                    "price": 0,
                    "name": "授权委托书（原告N简）",
                    "finalPrice": 0,
                    "id": 309,
                    "version": 1
                },
                {
                    "sequence": 56,
                    "price": 0,
                    "name": "民事起诉状NN",
                    "finalPrice": 0,
                    "id": 310,
                    "version": 1
                },
                {
                    "sequence": 88,
                    "price": 0,
                    "name": "代理词文头（原告）",
                    "finalPrice": 0,
                    "id": 311,
                    "version": 1
                },
                {
                    "sequence": 92,
                    "price": 0,
                    "name": "追加诉讼当事人申请书（被追加当事人自然人）",
                    "finalPrice": 0,
                    "id": 312,
                    "version": 2
                },
                {
                    "sequence": 93,
                    "price": 0,
                    "name": "追加诉讼当事人申请书（被追加当事人法人）",
                    "finalPrice": 0,
                    "id": 543,
                    "version": 3
                },
                {
                    "sequence": 102,
                    "price": 0,
                    "name": "变更诉讼请求申请书（原告N）",
                    "finalPrice": 0,
                    "id": 313,
                    "version": 1
                },
                {
                    "sequence": 104,
                    "price": 0,
                    "name": "变更诉讼请求申请书（原告N）",
                    "finalPrice": 0,
                    "id": 315,
                    "version": 1
                },
                {
                    "sequence": 106,
                    "price": 0,
                    "name": "撤回起诉申请书（原告N）",
                    "finalPrice": 0,
                    "id": 317,
                    "version": 1
                },
                {
                    "sequence": 112,
                    "price": 0,
                    "name": "延期举证申请书（原告N）",
                    "finalPrice": 0,
                    "id": 319,
                    "version": 1
                },
                {
                    "sequence": 116,
                    "price": 0,
                    "name": "证人出庭作证申请书（原告N）",
                    "finalPrice": 0,
                    "id": 321,
                    "version": 1
                },
                {
                    "sequence": 120,
                    "price": 0,
                    "name": "通知有专门知识的人出庭申请书（原告N）",
                    "finalPrice": 0,
                    "id": 322,
                    "version": 1
                },
                {
                    "sequence": 124,
                    "price": 0,
                    "name": "鉴定申请书（原告N）",
                    "finalPrice": 0,
                    "id": 324,
                    "version": 1
                },
                {
                    "sequence": 128,
                    "price": 0,
                    "name": "调查令申请书(原告N）",
                    "finalPrice": 0,
                    "id": 326,
                    "version": 1
                },
                {
                    "sequence": 134,
                    "price": 0,
                    "name": "诉讼财产保全申请书NN",
                    "finalPrice": 0,
                    "id": 327,
                    "version": 1
                },
                {
                    "sequence": 138,
                    "price": 0,
                    "name": "诉讼保全担保书（担保人自然人）",
                    "finalPrice": 0,
                    "id": 329,
                    "version": 2
                },
                {
                    "sequence": 139,
                    "price": 0,
                    "name": "诉讼保全担保书（担保人法人）",
                    "finalPrice": 0,
                    "id": 544,
                    "version": 3
                }
            ]
        };
    } else if (arr1[1] === '%7B%22tags%22%3A%5B16%5D%7D') {
        return {
            data: [
                {
                    "sequence": 36,
                    "price": 1,
                    "name": "董事会表决票",
                    "finalPrice": 1,
                    "id": 614,
                    "version": 2
                },
                {
                    "sequence": 37,
                    "price": 1,
                    "name": "董事会审议结果统计表",
                    "finalPrice": 1,
                    "id": 615,
                    "version": 2
                },
                {
                    "sequence": 38,
                    "price": 1,
                    "name": "董事会决议",
                    "finalPrice": 1,
                    "id": 616,
                    "version": 2
                },
                {
                    "sequence": 39,
                    "price": 1,
                    "name": "董事会会议记录",
                    "finalPrice": 1,
                    "id": 617,
                    "version": 2
                },
                {
                    "sequence": 40,
                    "price": 1,
                    "name": "董事授权委托书",
                    "finalPrice": 1,
                    "id": 618,
                    "version": 2
                }
            ]
        };
    } else if (arr1[1] === '%7B%22tags%22%3A%5B34%5D%7D') {
        return {
            data: [
                {
                    "sequence": 1,
                    "price": 0,
                    "name": "聘请律师合同（简版）",
                    "finalPrice": 0,
                    "id": 677,
                    "version": 1
                },
                {
                    "sequence": 2,
                    "price": 0,
                    "name": "诉讼法律服务合同（详版）",
                    "finalPrice": 0,
                    "id": 678,
                    "version": 1
                },
                {
                    "sequence": 3,
                    "price": 0,
                    "name": "诉讼法律服务合同（详版风险代理）",
                    "finalPrice": 0,
                    "id": 679,
                    "version": 1
                },
                {
                    "sequence": 4,
                    "price": 3,
                    "name": "常年法律顾问合同",
                    "finalPrice": 3,
                    "id": 680,
                    "version": 1
                },
                {
                    "sequence": 5,
                    "price": 3,
                    "name": "专项法律服务合同（专项服务）",
                    "finalPrice": 3,
                    "id": 681,
                    "version": 1
                },
                {
                    "sequence": 6,
                    "price": 3,
                    "name": "专项法律服务合同（出具法律意见书）",
                    "finalPrice": 3,
                    "id": 682,
                    "version": 1
                },
                {
                    "sequence": 7,
                    "price": 3,
                    "name": "律所报价函及律所律师介绍",
                    "finalPrice": 3,
                    "id": 690,
                    "version": 1
                },
                {
                    "sequence": 8,
                    "price": 20,
                    "name": "股权激励协议模板一（持股平台设立显名）",
                    "finalPrice": 20,
                    "id": 683,
                    "version": 1
                },
                {
                    "sequence": 9,
                    "price": 20,
                    "name": "股权激励协议模板二（持股平台转让显名）",
                    "finalPrice": 20,
                    "id": 684,
                    "version": 1
                },
                {
                    "sequence": 10,
                    "price": 20,
                    "name": "股权激励协议模板三（持股平台不显名）",
                    "finalPrice": 20,
                    "id": 685,
                    "version": 1
                },
                {
                    "sequence": 11,
                    "price": 1,
                    "name": "股权转让协议 1V1",
                    "finalPrice": 1,
                    "id": 686,
                    "version": 1
                },
                {
                    "sequence": 12,
                    "price": 1,
                    "name": "股权转让协议 2V2",
                    "finalPrice": 1,
                    "id": 687,
                    "version": 2
                },
                {
                    "sequence": 13,
                    "price": 3,
                    "name": "股权代持协议",
                    "finalPrice": 3,
                    "id": 688,
                    "version": 2
                },
                {
                    "sequence": 14,
                    "price": 3,
                    "name": "保密协议（公司-员工）",
                    "finalPrice": 3,
                    "id": 692,
                    "version": 1
                },
                {
                    "sequence": 15,
                    "price": 3,
                    "name": "保密协议（公司-公司）",
                    "finalPrice": 3,
                    "id": 691,
                    "version": 2
                },
                {
                    "sequence": 16,
                    "price": 3,
                    "name": "送达条款精编（四版本）",
                    "finalPrice": 3,
                    "id": 693,
                    "version": 1
                },
                {
                    "sequence": 17,
                    "price": 3,
                    "name": "律师函（催付合同欠款）",
                    "finalPrice": 3,
                    "id": 694,
                    "version": 1
                },
                {
                    "sequence": 18,
                    "price": 3,
                    "name": "三方协议(债务加入）",
                    "finalPrice": 3,
                    "id": 695,
                    "version": 1
                },
                {
                    "sequence": 19,
                    "price": 3,
                    "name": "三方协议(债务转移）",
                    "finalPrice": 3,
                    "id": 696,
                    "version": 1
                },
                {
                    "sequence": 20,
                    "price": 0,
                    "name": "借条",
                    "finalPrice": 0,
                    "id": 697,
                    "version": 1
                },
                {
                    "sequence": 21,
                    "price": 2,
                    "name": "中华人民共和国民法典",
                    "finalPrice": 2,
                    "id": 698,
                    "version": 5
                },
                {
                    "sequence": 22,
                    "price": 1,
                    "name": "民法典总则编1-4章1-108条",
                    "finalPrice": 1,
                    "id": 699,
                    "version": 3
                },
                {
                    "sequence": 23,
                    "price": 1,
                    "name": "民法典总则编5-10章109-204条",
                    "finalPrice": 1,
                    "id": 700,
                    "version": 3
                },
                {
                    "sequence": 24,
                    "price": 1,
                    "name": "民法典物权编1-2分编1-9章205-322条",
                    "finalPrice": 1,
                    "id": 701,
                    "version": 3
                },
                {
                    "sequence": 25,
                    "price": 1,
                    "name": "民法典物权编3-5分编10-20章323-462条",
                    "finalPrice": 1,
                    "id": 702,
                    "version": 3
                },
                {
                    "sequence": 26,
                    "price": 1,
                    "name": "民法典合同编1分编1-8章463-594条",
                    "finalPrice": 1,
                    "id": 703,
                    "version": 3
                },
                {
                    "sequence": 27,
                    "price": 1,
                    "name": "民法典合同编2分编9-13章595-702条",
                    "finalPrice": 1,
                    "id": 704,
                    "version": 3
                },
                {
                    "sequence": 28,
                    "price": 1,
                    "name": "民法典合同编2分编14-18章703-808条",
                    "finalPrice": 1,
                    "id": 705,
                    "version": 3
                },
                {
                    "sequence": 30,
                    "price": 1,
                    "name": "民法典合同编2分编19-22章809-918条",
                    "finalPrice": 1,
                    "id": 707,
                    "version": 3
                },
                {
                    "sequence": 31,
                    "price": 1,
                    "name": "民法典合同编2分编23-27章3分编28-29章919-988条",
                    "finalPrice": 1,
                    "id": 708,
                    "version": 3
                },
                {
                    "sequence": 32,
                    "price": 1,
                    "name": "民法典人格权编1-6章989-1039条",
                    "finalPrice": 1,
                    "id": 709,
                    "version": 4
                },
                {
                    "sequence": 33,
                    "price": 1,
                    "name": "民法典婚姻家庭编1-5章1040-1118条",
                    "finalPrice": 1,
                    "id": 710,
                    "version": 4
                },
                {
                    "sequence": 34,
                    "price": 1,
                    "name": "民法典继承编1-4章1119-1163条",
                    "finalPrice": 1,
                    "id": 711,
                    "version": 4
                },
                {
                    "sequence": 35,
                    "price": 1,
                    "name": "民法典侵权责任编1-10章&附则1164-1260条",
                    "finalPrice": 1,
                    "id": 712,
                    "version": 4
                },
                {
                    "sequence": 36,
                    "price": 0,
                    "name": "关于《中华人民共和国民法典（草案）》的说明",
                    "finalPrice": 0,
                    "id": 713,
                    "version": 1
                },
                {
                    "sequence": 37,
                    "price": 4,
                    "name": "中华人民共和国民法典（对比版）",
                    "finalPrice": 4,
                    "id": 719,
                    "version": 6
                },
                {
                    "sequence": 38,
                    "price": 2,
                    "name": "民法典总则编1-4章1-108条（对比版）",
                    "finalPrice": 2,
                    "id": 714,
                    "version": 4
                },
                {
                    "sequence": 39,
                    "price": 2,
                    "name": "民法典总则编5-10章109-204条（对比版）",
                    "finalPrice": 2,
                    "id": 715,
                    "version": 6
                },
                {
                    "sequence": 40,
                    "price": 2,
                    "name": "民法典物权编1-2分编1-9章205-322条（对比版）",
                    "finalPrice": 2,
                    "id": 716,
                    "version": 6
                },
                {
                    "sequence": 41,
                    "price": 2,
                    "name": "民法典物权编3-5分编10-20章323-462条（对比版）",
                    "finalPrice": 2,
                    "id": 717,
                    "version": 5
                },
                {
                    "sequence": 42,
                    "price": 2,
                    "name": "民法典合同编1分编1-8章463-594条（对比版）",
                    "finalPrice": 2,
                    "id": 718,
                    "version": 6
                },
                {
                    "sequence": 43,
                    "price": 2,
                    "name": "民法典合同编2分编9-13章595-702条（对比版）",
                    "finalPrice": 2,
                    "id": 720,
                    "version": 6
                },
                {
                    "sequence": 44,
                    "price": 2,
                    "name": "民法典合同编2分编14-18章703-808条（对比版）",
                    "finalPrice": 2,
                    "id": 721,
                    "version": 6
                },
                {
                    "sequence": 45,
                    "price": 2,
                    "name": "民法典合同编2分编19-22章809-918条（对比版）",
                    "finalPrice": 2,
                    "id": 722,
                    "version": 7
                },
                {
                    "sequence": 46,
                    "price": 2,
                    "name": "民法典合同编2分编23-27章3分编28-29章919-988条（对比版）",
                    "finalPrice": 2,
                    "id": 723,
                    "version": 9
                },
                {
                    "sequence": 47,
                    "price": 2,
                    "name": "民法典人格权编1-6章989-1039条（对比版）",
                    "finalPrice": 2,
                    "id": 724,
                    "version": 6
                },
                {
                    "sequence": 48,
                    "price": 2,
                    "name": "民法典婚姻家庭编1-5章1040-1118条（对比版）",
                    "finalPrice": 2,
                    "id": 725,
                    "version": 6
                },
                {
                    "sequence": 49,
                    "price": 2,
                    "name": "民法典继承编1-4章1119-1163条（对比版）",
                    "finalPrice": 2,
                    "id": 726,
                    "version": 7
                },
                {
                    "sequence": 70,
                    "price": 2,
                    "name": "民法典侵权责任编1-10章&附则1164-1260条（对比版）",
                    "finalPrice": 2,
                    "id": 727,
                    "version": 6
                }]
        }
    }
    else if (arr1[1] === '%7B%22tags%22%3A%5B28%5D%7D') {
        return {
            data: [
                {
                    "sequence": 1,
                    "price": 1,
                    "name": "股东会决议高频事项常用条款组合",
                    "finalPrice": 1,
                    "id": 83,
                    "version": 4
                },
                {
                    "sequence": 2,
                    "price": 1,
                    "name": "股东会决议（股权转让）（向新投资人转让）",
                    "finalPrice": 1,
                    "id": 94,
                    "version": 2
                },
                {
                    "sequence": 3,
                    "price": 1,
                    "name": "股东会决议（股权转让）（向新投资人转让）【注释版】",
                    "finalPrice": 1,
                    "id": 110,
                    "version": 3
                },
                {
                    "sequence": 4,
                    "price": 1,
                    "name": "股东会决议（股权转让）（向现有股东转让）",
                    "finalPrice": 1,
                    "id": 108,
                    "version": 2
                },
                {
                    "sequence": 5,
                    "price": 1,
                    "name": "股东会决议（股权转让）（向现有股东转让）【注释版】",
                    "finalPrice": 1,
                    "id": 82,
                    "version": 4
                },
                {
                    "sequence": 6,
                    "price": 1,
                    "name": "股东会决议（减资）",
                    "finalPrice": 1,
                    "id": 107,
                    "version": 2
                },
                {
                    "sequence": 7,
                    "price": 1,
                    "name": "股东会决议（减资）【注释版】",
                    "finalPrice": 1,
                    "id": 103,
                    "version": 3
                },
                {
                    "sequence": 8,
                    "price": 1,
                    "name": "股东会决议（增资）",
                    "finalPrice": 1,
                    "id": 88,
                    "version": 2
                },
                {
                    "sequence": 9,
                    "price": 1,
                    "name": "股东会决议（增资）【注释版】",
                    "finalPrice": 1,
                    "id": 97,
                    "version": 3
                },
                {
                    "sequence": 10,
                    "price": 1,
                    "name": "股东会决议（变更经营范围）",
                    "finalPrice": 1,
                    "id": 104,
                    "version": 2
                },
                {
                    "sequence": 11,
                    "price": 1,
                    "name": "股东会决议（变更经营范围）【注释版】",
                    "finalPrice": 1,
                    "id": 84,
                    "version": 4
                },
                {
                    "sequence": 12,
                    "price": 1,
                    "name": "股东会决议（变更住所）",
                    "finalPrice": 1,
                    "id": 98,
                    "version": 2
                },
                {
                    "sequence": 13,
                    "price": 1,
                    "name": "股东会决议（变更住所）【注释版】",
                    "finalPrice": 1,
                    "id": 89,
                    "version": 3
                },
                {
                    "sequence": 14,
                    "price": 1,
                    "name": "债务清偿及债务担保情况的说明",
                    "finalPrice": 1,
                    "id": 86,
                    "version": 2
                },
                {
                    "sequence": 15,
                    "price": 1,
                    "name": "债务清偿及债务担保情况的说明【注释版】",
                    "finalPrice": 1,
                    "id": 85,
                    "version": 3
                },
                {
                    "sequence": 16,
                    "price": 1,
                    "name": "章程（董事会+监事）",
                    "finalPrice": 1,
                    "id": 111,
                    "version": 2
                },
                {
                    "sequence": 17,
                    "price": 1,
                    "name": "章程（董事会+监事）【注释版】",
                    "finalPrice": 1,
                    "id": 92,
                    "version": 3
                },
                {
                    "sequence": 18,
                    "price": 1,
                    "name": "章程（董事会+监事会）",
                    "finalPrice": 1,
                    "id": 109,
                    "version": 2
                },
                {
                    "sequence": 19,
                    "price": 1,
                    "name": "章程（董事会+监事会）【注释版】",
                    "finalPrice": 1,
                    "id": 101,
                    "version": 3
                },
                {
                    "sequence": 20,
                    "price": 1,
                    "name": "章程（执行董事+监事）",
                    "finalPrice": 1,
                    "id": 100,
                    "version": 2
                },
                {
                    "sequence": 21,
                    "price": 1,
                    "name": "章程（执行董事+监事）【注释版】",
                    "finalPrice": 1,
                    "id": 105,
                    "version": 3
                },
                {
                    "sequence": 22,
                    "price": 1,
                    "name": "章程（执行董事+监事会）",
                    "finalPrice": 1,
                    "id": 96,
                    "version": 3
                },
                {
                    "sequence": 23,
                    "price": 1,
                    "name": "章程（执行董事+监事会）【注释版】",
                    "finalPrice": 1,
                    "id": 90,
                    "version": 3
                },
                {
                    "sequence": 24,
                    "price": 1,
                    "name": "章程修正案",
                    "finalPrice": 1,
                    "id": 99,
                    "version": 2
                },
                {
                    "sequence": 25,
                    "price": 1,
                    "name": "章程修正案【注释版】",
                    "finalPrice": 1,
                    "id": 91,
                    "version": 3
                },
                {
                    "sequence": 26,
                    "price": 1,
                    "name": "章程（一人有限）（执行董事+监事）",
                    "finalPrice": 1,
                    "id": 95,
                    "version": 3
                },
                {
                    "sequence": 27,
                    "price": 1,
                    "name": "章程（一人有限）（执行董事+监事）【注释版】",
                    "finalPrice": 1,
                    "id": 106,
                    "version": 4
                },
                {
                    "sequence": 28,
                    "price": 1,
                    "name": "股权转让协议1V1",
                    "finalPrice": 1,
                    "id": 102,
                    "version": 2
                },
                {
                    "sequence": 29,
                    "price": 1,
                    "name": "股权转让协议2V2",
                    "finalPrice": 1,
                    "id": 93,
                    "version": 2
                }
            ],
        }
    }

})